import request from '@/utils/request';
// 参数设置-SHG档案-炎彬
const shgFundsService = {
    // SHG种族列表
    async queryShgRaceList(params) {
        return request('/api/finance/salary/v1/setting/shg/race/list', {
            method: 'GET',
            params
        });
    },

    // SHG档案详情
    async queryShgDetail(params) {
        return request('/api/finance/salary/v1/setting/shg/detail', {
            method: 'GET',
            params
        });
    },
    // shg档案详情-新增(批量)
    async addShgDetail(params) {
        return request('/api/finance/salary/v1/setting/shg/detail', {
            method: 'POST',
            data: params
        });
    },
    // shg档案详情-更新
    async updateShgDetail(params) {
        return request('/api/finance/salary/v1/setting/shg/detail', {
            method: 'PUT',
            data: params
        });
    },
    // shg档案详情-删除
    async deleteShgDetail(params) {
        return request(`/api/finance/salary/v1/setting/shg/detail/${params.shgFundId}/${params.id}`, {
            method: 'DELETE'
        });
    },

    // 审批详情
    async queryApproveDetail(params) {
        return request(`/api/finance/salary/v1/setting/shg/approve/detail/${params.shgId}`, {
            method: 'GET'
        });
    },

    // shg档案-校验数据完整性
    async queryShgCheck(params) {
        return request(`/api/finance/salary/v1/setting/shg/check/${params.shgId}`, {
            method: 'GET'
        });
    },
    // shg档案-下一步
    async queryShgNextStep(params) {
        return request(`/api/finance/salary/v1/setting/shg/nextStep/${params.shgId}`, {
            method: 'GET'
        });
    },
    // shg档案-重置
    async resetShg(params) {
        return request(`/api/finance/salary/v1/setting/shg/reset/${params.shgId}`, {
            method: 'GET'
        });
    }
};

export default shgFundsService;
